typedef struct _pathname PATHNAME;
typedef struct _pathpart PATHPART;

struct _pathpart {
  const char *ptr;
  int len;
};

struct _pathname {
  PATHPART  part[6];
  # ifdef OS_VMS
  int   parent;
  # endif

# define f_grist  part[0]
# define f_root   part[1]
# define f_dir    part[2]
# define f_base   part[3]
# define f_suffix part[4]
# define f_member part[5]

} ;

void path_build( PATHNAME *f, char *file, int binding );
void path_parse( const char *file, PATHNAME *f );
void path_parent( PATHNAME *f );

